package com.guodu.vo;

import java.text.DecimalFormat;

import com.guodu.entity.MaterialRuku;

public class MaterialRukuVo extends MaterialRuku {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String rukuMoney;
	private String rukuPrice;
	private String count;

	public MaterialRukuVo(MaterialRuku materialRuku){
		this.setBuyer(materialRuku.getBuyer());
		this.setCreatePeople(materialRuku.getCreatePeople());
		this.setCreateTime(materialRuku.getCreateTime());
		this.setDrawingnum(materialRuku.getDrawingnum());
		this.setMaterialCode(materialRuku.getMaterialCode());
		this.setMaterialName(materialRuku.getMaterialName());
		this.setMeasurement(materialRuku.getMeasurement());
		this.setMoney(materialRuku.getMoney());
		this.setPrice(materialRuku.getPrice());
		this.setRemarks(materialRuku.getRemarks());
		this.setReserved1(materialRuku.getReserved1());
		this.setReserved2(materialRuku.getReserved2());
		this.setReserved3(materialRuku.getReserved3());
		this.setReserved4(materialRuku.getReserved4());
		this.setReserved5(materialRuku.getReserved5());
		this.setRkId(materialRuku.getRkId());
		this.setRkTime(materialRuku.getRkTime());
		this.setSpecifications(materialRuku.getSpecifications());
		this.setStatus(materialRuku.getStatus());
		this.setSupplier(materialRuku.getSupplier());
		this.setTexture(materialRuku.getTexture());
		this.setRukuCount(materialRuku.getRukuCount());
		DecimalFormat df=  new DecimalFormat("##,###.##");
		if(materialRuku.getRukuCount()!=null)
		this.count=df.format(materialRuku.getRukuCount());
		if(materialRuku.getMoney()!=null)
		this.rukuMoney = df.format(materialRuku.getMoney());
		if(materialRuku.getPrice()!=null)
		this.rukuPrice = df.format(materialRuku.getPrice());
	}
	
	private Long unitsId;
	
	private String unitsName;
	
	private Long funitsId;
	
	private String funitsName;
	
	private String industry;
	
	private String userName;

	public String getUnitsName() {
		return unitsName;
	}

	public void setUnitsName(String unitsName) {
		this.unitsName = unitsName;
	}

	public String getFunitsName() {
		return funitsName;
	}

	public void setFunitsName(String funitsName) {
		this.funitsName = funitsName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getIndustry() {
		return industry;
	}

	public void setIndustry(String industry) {
		this.industry = industry;
	}

	public Long getUnitsId() {
		return unitsId;
	}

	public void setUnitsId(Long unitsId) {
		this.unitsId = unitsId;
	}

	public Long getFunitsId() {
		return funitsId;
	}

	public void setFunitsId(Long funitsId) {
		this.funitsId = funitsId;
	}

	public String getRukuMoney() {
		return rukuMoney;
	}

	public void setRukuMoney(String rukuMoney) {
		this.rukuMoney = rukuMoney;
	}

	public String getRukuPrice() {
		return rukuPrice;
	}

	public void setRukuPrice(String rukuPrice) {
		this.rukuPrice = rukuPrice;
	}

	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}
	
}
